// This file was automatically generated from tests.soy.
// Please don't edit this file by hand.

goog.provide('dkpoints.tests.templates');

goog.require('soy');


/**
 * @param {Object.<string, *>=} opt_data
 * @return {string}
 * @notypecheck
 */
dkpoints.tests.templates.testCase = function(opt_data) {
  return '<div class="testCase"><div class="testHeader" id="' + soy.$$escapeHtml(opt_data.panelID) + 'Header">' + soy.$$escapeHtml(opt_data.testName) + '</div><div class="testDesc">' + soy.$$escapeHtml(opt_data.testDesc) + '</div><div class="testPanel" id="' + soy.$$escapeHtml(opt_data.panelID) + '"></div></div>';
};


/**
 * @param {Object.<string, *>=} opt_data
 * @return {string}
 * @notypecheck
 */
dkpoints.tests.templates.setupStep = function(opt_data) {
  return '<div class="setupStep"><b>Setting up test condition:</b> ' + soy.$$escapeHtml(opt_data.setupDesc) + '</div>';
};


/**
 * @param {Object.<string, *>=} opt_data
 * @return {string}
 * @notypecheck
 */
dkpoints.tests.templates.profileResults = function(opt_data) {
  return '<div class="profileResults"><b>Profiling Results:</b> ' + soy.$$escapeHtml(opt_data.profileResults) + '</div>';
};


/**
 * @param {Object.<string, *>=} opt_data
 * @return {string}
 * @notypecheck
 */
dkpoints.tests.templates.positiveResult = function(opt_data) {
  return '<div class="positiveResult"><b>Test condition passed:</b> ' + soy.$$escapeHtml(opt_data.resultString) + '</div>';
};


/**
 * @param {Object.<string, *>=} opt_data
 * @return {string}
 * @notypecheck
 */
dkpoints.tests.templates.negativeResult = function(opt_data) {
  return '<div class="negativeResult"><b>Test condition failed:</b> ' + soy.$$escapeHtml(opt_data.resultString) + '</div>';
};


/**
 * @param {Object.<string, *>=} opt_data
 * @return {string}
 * @notypecheck
 */
dkpoints.tests.templates.resultDetails = function(opt_data) {
  var output = '<ul class="resultDetails">';
  var detailList30 = opt_data.details;
  var detailListLen30 = detailList30.length;
  for (var detailIndex30 = 0; detailIndex30 < detailListLen30; detailIndex30++) {
    var detailData30 = detailList30[detailIndex30];
    output += '<li class="resultDetail ' + soy.$$escapeHtml(opt_data.posOrNeg) + 'Result"><b>' + soy.$$escapeHtml(detailData30.resultTitle) + ':</b> ' + soy.$$escapeHtml(detailData30.resultDetail) + '</li>';
  }
  output += '</ul>';
  return output;
};


/**
 * @param {Object.<string, *>=} opt_data
 * @return {string}
 * @notypecheck
 */
dkpoints.tests.templates.markComplete = function(opt_data) {
  return ' - <span class="' + soy.$$escapeHtml(opt_data.result) + '">' + ((opt_data.result == 'pass') ? 'Pass' : 'Fail') + '</span>';
};
